package top.dvvj.wheelmall.demo.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import top.dvvj.wheelmall.common.util.PageResult;
import top.dvvj.wheelmall.common.util.R;

/**
 * 测试封装返回对象 Controller
 *
 * @author Dvj
 * @date 2021/9/17 21:29
 */
@RestController
@RequestMapping("result")
public class ResultController {

    @GetMapping("/ok")
    public R<?> simpleResult() {
        return R.ok();
    }

    @GetMapping("/page")
    public PageResult<?> mapResult() {
        return PageResult.ok(null);
    }
}
